package lyx.game
{
	import flash.display.Sprite;
	import flash.text.StaticText;
	
	import lyx.game.stage.GameStage;
	
	public class World extends Sprite
	{
		static private var _instance:World;
		
		private var _current_stage:GameStage;
		
		static public function getInstance():World
		{
			if(_instance==null)
			{
				_instance = new World();
			}
			return _instance;	
		}
		
		public function setCurrentStage(game_stage:GameStage):void
		{
			if(_current_stage!=null)
			{
				removeChild(_current_stage);
			}
			_current_stage = game_stage;
			addChild(_current_stage);
		}
	}
}